decorative banner

Project close() Method


    app.project.close(CloseOptions)

Description

    Closes the project with the option of saving changes automatically, prompting the user to save changes or closing without saving changes.

Parameters

    CloseOptions

    the action to be performed on close (see Enumerated Types, below)

Enumerated Types

    CloseOptions.DO_NOT_SAVE_CHANGES

    close without saving

    CloseOptions.PROMPT_TO_SAVE_CHANGES

    send a prompt asking whether to save changes before close

    CloseOptions.SAVE_CHANGES

    save automatically on close option

Returns

    Boolean. False only in one case: the file has not been previously saved; the user is presented with a save dialog, and cancels the save.